package com.logicalthinking.socialmall.dao;

import com.logicalthinking.socialmall.common.vo.requestVo.clientUser.ClientUserShopApplyQueryParams;
import com.logicalthinking.socialmall.common.vo.responseVo.clientUser.ShopApplyUserListVo;
import com.logicalthinking.socialmall.entity.ClientAuthenticateSelf;
import com.logicalthinking.socialmall.entity.ClientAuthenticateShop;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Set;

/**
 * 商家认证信息
 * @author chenLiJia
 * @since 2020-02-17 15:08:43
 * @version 1.0
 **/
public interface ClientAuthenticateShopMapper extends Mapper<ClientAuthenticateShop> {
    ClientAuthenticateShop selectByPrimaryKey(Integer userId);

    /**
     * 通过用户Id集合查询商家认证信息
     * @param userIdSet
     * @return
     */
    List<ClientAuthenticateShop> listByUserIdSet(@Param("userIdSet") Set<Integer> userIdSet);


    /**
     * 查询申请商家列表
     * 查询 {@link ClientAuthenticateShop}
     *
     * @param params
     * @return
     */
    List<ShopApplyUserListVo> listShopApplyUserListVo(ClientUserShopApplyQueryParams params);
}